<?php 
	class M_persondailylog extends CI_Model{
		protected $_table = "persondailylog";
		function __construct(){
			parent :: __construct();
			$this->load->helper('url');
			$this->load->database();
		}
		
		public function my_info($number){
			$this->db->where('id',$number);
			return $this->db->get($this->_table)->result_array();
		}
		
		public function xoa_nhan_vien($number){
			$this->db->where('id',$number);
			return $this->db->delete($this->_table);
		}
		
		public function xoa_ds(){
			$this->db->where('note','');
			return $this->db->delete($this->_table);
		}
		
		public function list_all(){				
			return $this->db->get($this->_table)->result_array();
    	}
		
		function count_all(){ 
            return $this->db->count_all($this->_table); 
        } 

	}
?>